Skip to content

Conversation

sembcorpp
Copy link

Added schema for questions_attempt table in question db

Made endpoint to get unattempted question based on this logic:

  • return a qn both user1 and user2 have not attempted
  • if dont have, check if user1 has unattempted qns, if yes choose that
  • if dont have, checj if user2 has unattempted qns, if yes choose that
  • if not choose the qn that is least attempted among user1 and user2

Made an endpoint to add a new attempt once users attempt a question

@SeeuSim
Copy link

SeeuSim commented Nov 3, 2024

Added UI:

image
image

Copy link

@cyiting cyiting left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I think it would be good also be able view the attempt history in the question details page.

@SeeuSim SeeuSim changed the title Question Attempt History PEER-219,228,229: Question Attempt History Nov 3, 2024
@SeeuSim
Copy link

SeeuSim commented Nov 3, 2024

LGTM

I think it would be good also be able view the attempt history in the question details page.

Done for both :\

@SeeuSim SeeuSim merged commit c1c1d6b into main Nov 3, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants